﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wicresoft.UnifyShow.Business
{
    public class AlertView
    {
        [InspectionTitle("告警ID")]
        public decimal ID { get; set; }     //ID
        [InspectionTitle("告警时间")]
        public DateTime CreateTime { get; set; }    //创建时间
        [InspectionTitle("所属单位")]
        public string CompanyName { get; set; }         //所属单位
        [InspectionTitle("告警类别")]
        public string Type { get; set; }            //类别
        [InspectionTitle("主机地址")]
        public string HostAddress { get; set; }         //IP地址
        [InspectionTitle("业务系统名")]
        public string BusinessName { get; set; }        //业务系统
        [InspectionTitle("告警信息")]
        public string Message { get; set; }             //告警信息
        [InspectionTitle("告警级别")]
        public string Severity { get; set; }            //告警级别
        [InspectionTitle("故障解决时间")]
        public DateTime ResolveTime { get; set; }       //故障解决时间
        [InspectionTitle("告警状态")]
        public string Status { get; set; }              //状态
        
        public string ItemName { get; set; }

        //extension
        public decimal Count { get; set; }
        public decimal BadWorkHours { get; set; }       //故障时间（小时）
        public decimal WorkTime { get; set; }           //无故障运行时间（小时）
        public decimal UsagePercentVal { get; set; }    //可用性值
        public string UsagePercent { get; set; }        //可用性
    }
}
